Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing summary calls in simulating.ipynb #239

Merged
merged 1 commit into from
Mar 16, 2016

Conversation

pstjohn
Copy link
Contributor

@pstjohn pstjohn commented Mar 15, 2016

Previously, the summary calls were made on a solution object that was
optimized for ATP maintenance, while the current objective was for
biomass optimization. Addresses #238

"pygments_lexer": "ipython3",
"version": "3.4.3"
"pygments_lexer": "ipython2",
"version": "2.7.10"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The notebook has to be run in python 3. See spatialaudio/nbsphinx#27

@pstjohn pstjohn force-pushed the summary_docs_edit branch 3 times, most recently from 54f974c to aa7d9db Compare March 16, 2016 20:48
@pstjohn
Copy link
Contributor Author

pstjohn commented Mar 16, 2016

This most recent update should hopefully address running the notebook under 3.4, (as well as fixing what seemed to be a newly depricated round call that raised errors under my new virtualenv.)

These changes are meant to address the main issue of #238 (model solution not being updated), which seem to be the most pressing. I'd vote to move the discussion on changes to the methods over to #240, if only because then the docs can get updated sooner.

out_fluxes = out_fluxes.round(digits)
in_fluxes.sort_values(by='x', inplace=True)
in_fluxes = in_fluxes.round(digits)
out_fluxes = out_fluxes.sort_values(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why this is necessary.

It looks to be less efficient than the inplace call.

@aebrahim
Copy link
Member

Thanks!

I think you can remove the changes to summary and rounding - My guess is that you are trying to fix the same bug I already fixed in 9395b83. Maybe rebase off of the latest master?

Previously, the summary calls were made on a solution object that was
optimized for ATP maintenance, while the current objective was for
biomass optimization
@pstjohn
Copy link
Contributor Author

pstjohn commented Mar 16, 2016

Oops! I missed that, thanks for being on top of the version updates. Should be fixed now.

aebrahim added a commit that referenced this pull request Mar 16, 2016
Fixing summary calls in simulating.ipynb
@aebrahim aebrahim merged commit a57e4d6 into opencobra:master Mar 16, 2016
@pstjohn pstjohn deleted the summary_docs_edit branch March 16, 2016 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants